<script setup>
import { onMounted } from 'vue'
import { ElMessage } from 'element-plus'

const footer = {
  navigation: [
    {
      header: 'About',
      items: [
        { name: 'Iintroduction', hash: false },
        { name: 'Brand', hash: false },
        { name: 'foundation', hash: false },
        { name: 'White Paper', hash: false },
        { name: 'Github', hash: false },
        { name: 'Donation', hash: false },
      ],
    },
    {
      header: 'Community',
      items: [
        { name: 'Chat', hash: false },
        { name: 'Blog', hash: false },
        { name: 'Support', hash: false },
        { name: 'Validators', hash: false },
        { name: 'Create Ecosytem', hash: false },
        { name: 'Grants Program', hash: false },
      ],
    },
    {
      header: 'Developer',
      items: [
        { name: 'Docs', hash: false },
        { name: 'Developer Community', hash: false },
        { name: 'Rust Apply', hash: false },
        { name: 'Solidity Apply', hash: false },
        { name: 'Build On Beedex', hash: false },
      ],
    },
  ],
}
onMounted(() => {

})

const comingSoon = () => {
  ElMessage.warning('Coming Soon')
}
</script>

<template>
  <div class="footer wow slideInUp">
    <div class="content footer_box">
      <div class="left">
        <div>
          <a href="/#/"><img class="logo2" src="../assets/img/logo2.png" alt="" /></a>
        </div>
        <p>Submit your email address to us thus we can send you some <br />
          valuable information about new events.</p>
        <div class="ipt">
          <input type="text" placeholder="Single Line Input">
          <span>Subscribe <i>→</i></span>
        </div>
        <!-- <div>
          <a href="https://app.seer.eco/" target="_blank">
            <img src="../assets/img/logo2.png" alt="seer" />
          </a>
          <a href="https://twitter.com/SeerFoundation" target="_blank">
            <img src="../assets/img/logo2.png" alt="tw" />
          </a>
          <img @click="comingSoon" src="../assets/img/logo2.png" alt="github" />
        </div> -->
      </div>
      <div class="fnav">
        <ul v-for="item in footer.navigation" :key="item.header">
          <li class="ups">{{ item.header }}</li>
          <li v-for="items in item.items" :key="items.name">
            <a v-if="items.hash" :href="items.hash" :target="items.link ? '_blank' : ''">{{ items.name }}</a>
            <span v-else @click="comingSoon">{{ items.name }}</span>
          </li>
        </ul>
      </div>
    </div>
    <div class="footer_link">
      <div class="content">
        <p>© <i class="yec">BeeLink </i> Foundation. All Rights Reserved | Disclaimer</p>
        <div>
          <img src="../assets/img/f1.png" alt="">
          <img src="../assets/img/f2.png" alt="">
          <img src="../assets/img/f3.png" alt="">
          <img src="../assets/img/f4.png" alt="">
          <img src="../assets/img/f5.png" alt="">
        </div>
      </div>

    </div>

  </div>
</template>

<style scoped lang="less">
.footer {
  padding: 80px 0 0 0;
  background: #000;

  .footer_link {
    border-top: 1px solid #292929;
    margin-top: 50px;

    .content {
      display: flex;
      justify-content: space-between;
      align-items: center;
      padding: 30px 0;

      p {
        font-size: 12px;
      }

      div {
        display: flex;

        img {
          height: 26px;
          margin-left: 50px;
          cursor: pointer;
        }
      }
    }
  }

  .logo2 {
    height: 32px;
  }

  .ipt {
    input {
      height: 40px;
      line-height: 40px;
      border-radius: 6px;
      width: 200px;
      margin-right: 30px;
      padding: 0 15px;
    }

    span {
      cursor: pointer;
      background-color: #1F2226;
      height: 40px;
      line-height: 40px;
      border-radius: 6px;
      color: #fff;
      padding: 0 15px;
      display: flex;
      align-items: center;

      i {
        color: #FFD900;
        font-size: 20px;
      }
    }
  }

  .footer_box {
    display: flex;
    justify-content: space-between;

    .left {
      flex: auto;
      display: flex;
      flex-direction: column;
      color: #C2C2C2;
      font-size: 14px;

      img {
        margin-right: 14px;
        cursor: pointer;
      }

      >div {
        display: flex;
        align-items: center;
      }

      p {
        margin: 20px 0;
      }
    }
  }

}

.fnav {
  display: flex;
  color: #DFE1E2;
  justify-content: space-between;
}

.fnav ul {
  margin-left: 100px;
}

.fnav ul li {
  line-height: 32px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
}

.fnav ul li:hover span,
.fnav ul li:hover a {
  color: #fff;
}

.fnav ul li a,
.fnav ul li span {
  color: #DFE1E2;
  transition: .5s;
}

.fnav ul .ups {
  color: #FFF;
  font-family: 'Poppins-SemiBold';
  font-size: 16px;
}


@media (max-width:768px) {
  // home首页
  #app {
    .content {
      width: 94%;
      max-width: none;
      padding-left: 3% !important;
      padding-right: 3% !important;
    }

    .phone {
      display: block;
    }

    .web {
      display: none;
    }
    p,span{font-size: 13px;}

    // 底部
    .footer {
      padding-top: 50px;
      .footer_link{
        margin-top: 30px;
        .content{
          padding: 15px 0 60px;
          flex-direction: column;
          align-items: flex-start;
          img{margin: 10px 15px 0 0;}
        }
      }
      .ipt{
        margin-bottom: 30px;
        input{
          width: 40%;
          margin-right: 10px;
          padding: 0 8px;
        }
      }
      .footer_box {
        flex-wrap: wrap;

        .left,
        .fnav {
          width: 100%;
          flex-wrap: wrap;
        }

        .fnav ul {
          margin-left: 0px;
          margin-top: 20px;
          flex: 0 0 40%;
        }

        ;
      }
    }

  }
}</style>
